package com.feibi.study.NetWork.module;

import android.content.Context;

import com.feibi.study.NetWork.BasicModule;
import com.feibi.study.NetWork.BasicResponseBody;
import com.feibi.study.NetWork.HttpCallBack;
import com.feibi.study.NetWork.Req.LoginReq;
import com.feibi.study.NetWork.Res.LoginRes;

public class Account extends BasicModule {

    public Account(Context context) {
        super(context);
    }

    public void LogOut(final HttpCallBack<BasicResponseBody<Object>> reqCallBack) {
        post(context, "api/v1/auth/logout", new Object(), reqCallBack, Object.class);
    }

    public void Login(LoginReq req, final HttpCallBack<BasicResponseBody<LoginRes>> reqCallBack) {
        post(context, "api/Account/login", req, reqCallBack, LoginRes.class);
    }

}

